package com.zhy.controller;

import com.zhy.service.ArchiveService;
import com.zhy.service.MusicService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MusicControl {
    @Autowired
    MusicService musicService;

    @GetMapping("/findMusicList")
    public JSONObject findMusic(){
        return  musicService.findMusics();
    }
}
